home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFER__
/
PROTO
/
P
/
PIMENU_L.C
< prev
next >
Wrap
Text File
|
1991-07-23
|
2KB
|
49 lines
/* PIMenu_Life Initialize the menu bar */
/* Unit name: PIMenu_Life.c */
/* Function: This module loads in the menu lists and places them */
/* into the menubar. */
/* History: 7/23/91 Original by Prototyper 3.0 */
#include "PCommonLife.h" /* Common */
#include "Common_Life.h" /* Common */
#include "PUtils_Life.h" /* General Utilities */
#include "Utils_Life.h" /* General Utilities */
#include "InitMenuLife.h" /* Extra menu init */
#include "PIMenu_Life.h" /* This file*/
/* ======================================================= */
/* Routine: Init_My_Menus */
/* Purpose: Load in the menu lists and initialize the menubar */
void Init_My_Menus()
{
ClearMenuBar(); /* Clear any old menu bars */
/* This menu is the APPLE menu, used for About and desk accessories. */
Menu_Apple = GetMenu(Res_Menu_Apple); /* Get the menu from the resource file */
InsertMenu (Menu_Apple,0); /* Insert this menu into the menu bar */
AddResMenu(Menu_Apple,'DRVR'); /* Add in DAs */
Menu_File = GetMenu(Res_Menu_File); /* Get the menu from the resource file */
InsertMenu (Menu_File,0); /* Insert this menu into the menu bar */
Menu_Edit = GetMenu(Res_Menu_Edit); /* Get the menu from the resource file */
InsertMenu (Menu_Edit,0); /* Insert this menu into the menu bar */
AddExtraMenus(); /* Add any extra menu lists */
DrawMenuBar(); /* Draw the menu bar */
} /* End of procedure Init_My_Menus */